import 'package:json_annotation/json_annotation.dart';


part 'text_config.g.dart';

@JsonSerializable(includeIfNull: false, explicitToJson: true)
class TextConfig {
  var position;
  var rotation;
  var layoutRect;
  var offset;
  var origin;
  var distance;
  var local;
  var insideFill;
  var insideStroke;
  var outSideFill;
  var outSideStroke;
  var inside;

  TextConfig(
      {this.position,
        this.rotation,
        this.layoutRect,
        this.offset,
        this.origin,
        this.distance,
        this.local,
        this.insideFill,
        this.insideStroke,
        this.outSideFill,
        this.outSideStroke,
        this.inside});

  factory TextConfig.fromJson(Map<String, dynamic> json) =>
      _$TextConfigFromJson(json);

  Map<String, dynamic> toJson() => _$TextConfigToJson(this);
}